package com.spark.orderapi.feign;

import com.spark.basecommon.api.R;
import com.spark.orderapi.feign.impl.OmsCartItemBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author fuqiang
 * @Description 购物车
 * @Date 2020/10/29
 */
@FeignClient(value = "order-center" ,fallbackFactory = OmsCartItemBack.class)
public interface OmsCartItemFeign {
    /**
     * 更新产品--测试
     * @param id
     * @return
     */
    @PostMapping("item/updateItem")
    R<Boolean> updateItem(@RequestBody Long id);

}
